package Classlearning.ObjectOriented.Exception.work;

public class Bank {
    private int out;

    public void getMoney(int out) throws BankException{
        if(out % 100 == 0){
            System.out.println(out);
        }else {
            throw new BankException("错误");
        }
    }

}
